<?php
try{
	include '../ini.php';
	include '../classes/xl_home.php';
	$dt_xl_home=new xl_home;
    
	$read_list=$dt_xl_home->read_list();
    $dt_smarty->assign('list',$read_list);
	$contenForLayout=$dt_smarty->fetch('home/list.tpl');
	$dt_smarty->assign('contenForLayout',$contenForLayout);
	$dt_smarty->assign('titleForLayout','Trang Chủ');
	$dt_smarty->display('layout/defaults.tpl');
    $dbh=NULL;
	
} catch(Exception $e){
    $dbh=NULL;
    $_SESSION['msg']=$e->getMessage();
	
}
